home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / utilit~1 / futilsrc.zoo / fileutil / Makefile < prev    next >
Encoding:
Makefile  |  1991-10-21  |  5.2 KB  |  142 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Master Makefile for the GNU file utilities.
  3. # Copyright (C) 1986, 1988-1991 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. #SHELL = /bin/sh
  20.  
  21. #### Start of system configuration section. ####
  22.  
  23. srcdir = .
  24.  
  25.  
  26. # If you use gcc, you should either run the fixincludes script that
  27. # comes with it or else use gcc with the -traditional option.  Otherwise
  28. # ioctl calls will be compiled incorrectly on some systems.
  29. CC = gcc
  30. AR = gcc-ar
  31. # Set RANLIB = echo if your system doesn't have or need ranlib.
  32. RANLIB = echo
  33.  
  34. # Things you might add to DEFS:
  35. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  36. # -DPOSIX        If you have POSIX.1 headers and libraries.
  37. #            Also need to define -DDIRENT.
  38. # -DUSG            If you have System V/ANSI C string and
  39. #            memory functions and headers, ndir.h,
  40. #            sys/sysmacros.h, no sys/times.h, fcntl.h,
  41. #            getcwd.
  42. # -DSIGTYPE=int        If your signal handlers return int, not void.
  43. # -DDIRENT        If you have dirent.h.
  44. # -DSYSNDIR        Old Xenix systems (selects sys/ndir.h).
  45. # -DVOID_CLOSEDIR    If your closedir function returns void, not int.
  46. # -DMAJOR_IN_MKDEV    If major, minor, makedev are defined in sys/mkdev.h.
  47. # -DINT_16_BITS        If sizeof long > sizeof int.
  48. # -DVPRINTF_MISSING    If you lack vprintf function (but have _doprnt).
  49. # -DDOPRNT_MISSING    If you lack _doprnt function.  Also need to define
  50. #            -DVPRINTF_MISSING.
  51. # -DMKFIFO_MISSING    If you lack mkfifo system call, but have FIFOs.
  52. # -DFTRUNCATE_MISSING    If you lack ftruncate system call.
  53. # -DFCHMOD_MISSING    If you lack fchmod system call.
  54. # -DMVDIR=\"$(libdir)/mvdir\"
  55. #            If you lack rename system call.
  56. # -DST_BLOCKS_MISSING    If your `struct stat' lacks st_blocks and st_blksize.
  57. # -DUTIME_NULL_MISSING    If your utime system call does not use the
  58. #            current time when passed a null time pointer.
  59. # -DNEED_TZSET        If you lack ftime system call and
  60. #            need to call tzset to set the timezone.
  61. # Define zero or one of the following:
  62. # If no FS_* is defined, df will not link.
  63. # -DFS_MNTENT        If you use 4.3BSD getmntent to get filesystem info.
  64. # -DFS_GETMNT        If you use Ultrix getmnt to get filesystem info.
  65. # -DFS_STATFS        If you use 4.4BSD statfs to get filesystem info.
  66. # -DFS_USG_STATFS    If you use SVR3.2 statfs to get filesystem info.
  67. # -DFS_STATVFS        If you use SVR4 statvfs to get filesystem info.
  68.  
  69. DEFS = -DSIGTYPE=int -DSTDC_HEADERS -DFCHMOD_MISSING -DFTIME_MISSING -DMKFIFO_MISSING -DFTRUNCATE_MISSING
  70. LIBS = 
  71. LIBPROGS = 
  72.  
  73. #CDEBUG = -g
  74. CDEBUG = -O
  75. CFLAGS = $(CDEBUG) -I. -I../lib -I$(srcdir)/lib $(DEFS)
  76. #LDFLAGS = -g
  77. LDFLAGS =
  78.  
  79. prefix = /usr/local
  80.  
  81. # Where to install the executables.
  82. bindir = $(prefix)/gnubin
  83.  
  84. # Where to put mvdir, if your system lacks the rename system call.
  85. libdir = $(prefix)/lib
  86.  
  87. # Where to put the manual pages.
  88. mandir = $(prefix)/man/man1
  89. # Extension (not including `.') for the installed manual page filenames.
  90. manext = 1
  91.  
  92. #### End of system configuration section. ####
  93.  
  94. MDEFINES = bindir='$(bindir)' libdir='$(libdir)' mandir='$(mandir)' \
  95. manext='$(manext)' LIBS='$(LIBS)' LIBPROGS='$(LIBPROGS)' \
  96. AR='$(AR)' RANLIB='$(RANLIB)' \
  97. CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' CC='$(CC)'
  98.  
  99. DISTFILES = COPYING COPYING.LIB ChangeLog Makefile.in README configure
  100.  
  101. # Subdirectories to run make in for the primary targets.
  102. SUBDIRS = lib src man
  103.  
  104. all:
  105.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  106. .PHONY: all
  107.  
  108. install:
  109.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  110. .PHONY: install
  111.  
  112. tags:
  113.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  114. .PHONY: tags
  115.  
  116. TAGS:
  117.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  118. .PHONY: TAGS
  119.  
  120. clean:
  121.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  122. .PHONY: clean
  123.  
  124. distclean:
  125.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  126.     rm -f Makefile config.status
  127. .PHONY: distclean
  128.  
  129. realclean:
  130.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  131.     rm -f Makefile config.status
  132. .PHONY: realclean
  133.  
  134. dist:
  135.     echo fileutils-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q src/version.c` > .fname
  136.     rm -rf `cat .fname`
  137.     mkdir `cat .fname`
  138.     ln $(DISTFILES) `cat .fname`
  139.     for dir in $(SUBDIRS); do mkdir `cat .fname`/$$dir; cd $$dir; $(MAKE) $@; cd ..; done
  140.     tar chZf `cat .fname`.tar.Z `cat .fname`
  141.     rm -rf `cat .fname` .fname
  142.